# Maintainer: Elizabeth Jennifer Myers <elizabeth@sporksirc.net>
# Contributor: Elizabeth Jennifer Myers <elizabeth@sporksirc.net>
pkgname=py3-greenlet
pkgver=0.4.16
pkgrel=0
pkgdesc="Lightweight in-process concurrent programming"
url="https://pypi.python.org/pypi/greenlet"
arch="all"
license="MIT"
makedepends="py3-setuptools python3-dev"
source="https://files.pythonhosted.org/packages/source/g/greenlet/greenlet-$pkgver.tar.gz
	ppc64le_clobbering.patch"
builddir="$srcdir/greenlet-$pkgver"

replaces="py-greenlet" # Backwards compatibility
provides="py-greenlet=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	case "$CARCH" in
		mips*) ;;
		*) export CFLAGS="-O0" CPPFLAGS="-O0" CXXFLAGS="-O0" ;;
	esac
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="0dc473c05c1d54a830c009fe8197fd2017b8f3117532af0fc7970eb5abd93a82bbaa1a8403375a0ac7148fcff63cdc3faa663d0c5e442f3dd10ea3b2f98b306e  greenlet-0.4.16.tar.gz
7dde3227207c3d637031c37f4ea2e81d454a3481164b58984528fa186e3edfa30d7f6075fef31c6b5f75c3b08129ec38ccc4d10c0c2cf3fb763803fc6dbd4643  ppc64le_clobbering.patch"
